package com.example.controller;

import com.example.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: springcloud
 * @description: feign使用断路器控制层
 * @author: ChenZhiXiang
 * @create: 2019-06-03 16:08
 **/
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @GetMapping("/hystrix")
    public String hystrix(){
        return helloService.hystrix();
    }
}
